<template>
  <div id="app">
    <collapse :main="'这是主面板'">
        <nav slot="main">
          <span>导航一</span>
          <span>导航一</span>
          <span>导航一</span>
        </nav>
        <ul slot="child">
          <li>1</li>
          <li>2</li>
          <li>3</li>
          <li>4</li>
          <li>5</li>
          <li>6</li>
          <li>7</li>
          <li>8</li>
          <li>9</li>
          <li>10</li>
        </ul>
    </collapse>
    <current-user>
      <template>
        默认和
      </template>
      <template v-slot:userName="{user={firstName:'Guest'}}">
         {{user.firstName}}
      </template>
    </current-user>
  </div>
</template>

<script>
import Collapse from '@/components/Collapse'
import CurrentUser from '@/components/CurrentUser'
export default {
  name: 'App',
  components:{
    Collapse,
    CurrentUser
  }
}
</script>

<style lang="scss">

</style>
